package com.jie.common;

/**
 * 配置线程工具
 */
public class BaseContext {
    private static ThreadLocal<Integer> threadLocal=new ThreadLocal<>();
    public static void setCurrentId(int id){
        threadLocal.set(id);
    }
    public static int getCurrentId(){
        return threadLocal.get();
    }
}
